package org.yenn.pattern.aliyun.structural.flyweight.impl;


import lombok.Setter;
import org.yenn.pattern.aliyun.structural.flyweight.Shape;

/**
 * 步骤 2
 * 创建实现接口的实体类。
 */
public class Circle implements Shape {
    private String color;
    @Setter
    private int x;
    @Setter
    private int y;
    @Setter
    private int radius;

    public Circle(String color){
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("Circle: Draw() [Color : " + color
                +", x : " + x +", y :" + y +", radius :" + radius);
    }
}
